package com.example.warehouse_manager.service;


import com.example.warehouse_manager.entity.Product;
import com.example.warehouse_manager.entity.Result;
import com.example.warehouse_manager.page.Page;
import org.apache.catalina.LifecycleState;
import org.springframework.util.ResourceUtils;

import java.awt.geom.RectangularShape;
import java.util.List;

/**
* @author Yang
* @description 针对表【product(商品表)】的数据库操作Service
* @createDate 2024-03-22 15:06:14
*/
public interface ProductService{

    //分页查询商品的业务
    public Page queryProductPage(Page page, Product product);

    //添加商品
    public Result saveProduct(Product product);

    //根据商品id修改商品上下架状态
    public Result updateStateByPid(Product product);

    //根据商品id删除商品
    public Result deleteProductByIds(List<Integer> productIdList);

    //根据id修改商品
    public Result setProductById(Product product);

}
